<?php
/* SVN FILE: $Id: routes.php 126 2009-07-02 07:21:52Z miha@nahtigal.com $ */
/**
 * Short description for routes.php
 *
 * Long description for routes.php
 *
 * PHP versions 4 and 5
 *
 * Copyright (c) 2009, Miha Nahtigal
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright (c) 2009, Miha Nahtigal
 * @link          http://www.nahtigal.com/
 * @package       lil_blogs_app
 * @subpackage    lil_blogs_app.config
 * @since         v 1.0
 * @version       $Revision: 126 $
 * @modifiedby    $LastChangedBy: miha@nahtigal.com $
 * @lastmodified  $Date: 2009-07-02 07:21:52 +0000 (Thu, 02 Jul 2009) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
/**
 * Here, we are connecting '/' (base path) to plugin blogs controller.
*/
	Router::connect('/', array(
		'plugin'=>'lil_blogs',
		'controller' => 'posts', 
		'action' => 'index', 
		'blogname' => Configure::read('defaultBlog')
	));
 
/**
 * ...and connect admin pages.
 */
	Router::connect('/admin', array(
		'plugin'=>'lil_blogs',
		'controller' => 'blogs', 
		'action' => 'index', 
		'admin'=>true
	));

/**
 * ...and connect login pages.
 */
	Router::connect('/login', array(
		'plugin'=>'lil_blogs',
		'controller' => 'authors', 
		'action' => 'login'
	));
    Router::connect('/logout', array(
		'plugin'=>'lil_blogs',
		'controller' => 'authors', 
		'action' => 'logout'
	));
/**
 * ...and connect static pages.
 */
	Router::connect('/pages/*', array('plugin'=>false, 'controller' => 'pages', 'action' => 'display'));
/**
 * Connect LilBlogs routes
 */
 	require APP.'plugins'.DS.'lil_blogs'.DS.'config'.DS.'routes.php';
?>
